package com.gpframework.common.weixin.common.constants;

/**
 * @author mahb
 * @since Jun 2, 2014
 */
public class WeiXinConstants {
    /***
     * 订阅号id,secret 测试ID帐号
     */
    public static final String APP_ID = "wx506cf9dfedf1c10a";
    public static final String APP_SECRET = "a53eb6a33c4c3b54829faa0651ab0d1b";


    public static final String APP_SHOP_ID = "wx9d8d224e67abc44d";
    public static final String APP_SHOP_SECRET = "78e17df84bf3a042016067da913424b9";

    //乐享生活-公众号
    public static final String WX_APP_ID = "wxcfbcb0b8709173cd";
    public static final String WX_APP_SECRET = "7e3c87ff2a9145ea6ea845a56f809ecc";

    //OAuth2.0网页授权功能的回调域名
    public static final String WX_HOST_URL = "medical.cn.cn";

    //OAuth2.0网页授权功能的回调域名
    public static final String WX_HOST_URL_TEST = "192.168.0.106:8080";
    /**
     * 企业号id,key
     */
    public static final String ETOKEN = "1a94HPMthX8QT946zVCq8CsghaHo6meK";// 这个Token是随机生成，但是必须跟企业号上的相同
    public static final String ECORPID = "wxa54ee91f8f27ae0d";// 这里是你企业号的CorpID
    public static final String EENCODINGAESKEY = "qVFeDsQGT6Mgzbl3Q77QBWXdLLa2Q49NOch10jFWQyi";// 这个EncodingAESKey是随机生成，但是必须跟企业号上的相同

    // 获取access_token的接口地址（GET） 限200（次/天）
    public static final String ACCESS_TOKEN_URL = "https://api.weixin.qq.com/cgi-bin/token?grant_type=client_credential&appid=APPID&secret=APPSECRET";
    // 菜单创建（POST） 限100（次/天）
    public static final String MENU_CREATE_URL = "https://api.weixin.qq.com/cgi-bin/menu/create?access_token=ACCESS_TOKEN";
    public static final String MENU_GET_URL = "https://api.weixin.qq.com/cgi-bin/menu/get?access_token=ACCESS_TOKEN";
    public static final String MENU_DELETE_URL = "https://api.weixin.qq.com/cgi-bin/menu/delete?access_token=ACCESS_TOKEN";
    // 发送客服消息
    public static final String SEND_MSG_TO_USER_URL = "https://api.weixin.qq.com/cgi-bin/message/custom/send?access_token=ACCESS_TOKEN";
    // 获取用户基本信息
    public final static String GET_USER_INFO_URL = "https://api.weixin.qq.com/sns/userinfo?access_token=ACCESS_TOKEN&openid=OPENID&lang=zh_CN";


    // 获取用户uID
    public final static String GET_UNIONID_URL = "https://api.weixin.qq.com/cgi-bin/user/info?access_token=ACCESS_TOKEN&openid=OPENID&lang=zh_CN";


    // 获取OAuth2.0的接口地址（GET） 限200（次/天）
//	public static final String ACCESS_OAUTH2_URL ="https://api.weixin.qq.com/sns/oauth2/access_token?appid=APPID&secret=SECRET&code=CODE&grant_type=authorization_code";
    public static final String ACCESS_OAUTH2_URL = "https://api.weixin.qq.com/sns/jscode2session?appid=APPID&secret=SECRET&js_code=JSCODE&grant_type=authorization_code";


    public static final String ACCESS_OAUTH3_URL = "https://api.weixin.qq.com/sns/jscode2session?appid=APPID&secret=APPSECRET&js_code=JSCODE&grant_type=authorization_code";

    public static final String GET_TICKET_URL = "https://api.weixin.qq.com/cgi-bin/ticket/getticket?access_token=ACCESS_TOKEN&type=jsapi";

    //模板信息发送-公众号
    public static final String COMMON_TEMPLATE_SEND_URL = "https://api.weixin.qq.com/cgi-bin/message/template/send?access_token=ACCESS_TOKEN";


    // 微信内容安全检测接口(POST)
    public final static String MSG_SEC_CHECK_URL = "https://api.weixin.qq.com/wxa/msg_sec_check?access_token=ACCESS_TOKEN";

    public static final String ADVANCED_SUBSCRIBE_SEND_URL = "https://api.weixin.qq.com/cgi-bin/message/subscribe/send?access_token=";
    public static final String APP_ADVANCED_SUBSCRIBE_SEND_URL = "https://api.weixin.qq.com/cgi-bin/message/template/send?access_token=";
}
